import axios from "../utils/axiosUtils"

/**
 * 获取所有角色列表
 * @returns Promise
 */
export const findAllRoleApi = ()=>{
    return axios.get("/roles/findRoles")
}

/**
 * 授权的api
 * @param {*} data 
 * @returns 
 */
export const authApi = (data)=>{
    return axios.post("/roles/addAuth",data)
}

